#include <bits/stdc++.h>
const int N = 1e6 + 5; 
using namespace std; 
int n, C; 
int a[N]; 
inline void solve() {
	cin >> n >> C; 
	for(int i = 1; i <= n; ++i) cin >> a[i]; 
	if(!C) return cout << "0\n", void(); 
	return ; 
}
int main() {
	freopen("minimize.in", "r", stdin); 
	freopen("minimize.out", "w", stdout); 
	ios::sync_with_stdio(false); 
	cin.tie(0); cout.tie(0); 
	solve(); 
	return 0; 
}
